'''
/*
 * @Author: wevsmy 
 * @Date: 2017-10-24 11:11:07 
 * @Last Modified by: wevsmy
 * @Last Modified time: 2017-10-24 11:33:02
 */
'''
import threading
import time

class MyThread(threading.Thread):
    def run (self):
        for i in range(3):
            time.sleep(1)
            #name 属性中保存的是当前线程的名字
            msg = "I M " + self.name + "@" +str(i)
            print(msg)

def test():
    for i in range(5):
        t = MyThread()
        t.start()

if __name__ == '__main__':
    test()

    